﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Tisonet.Dobrak.Domain.Models;
using Tisonet.Dobrak.Domain.Services.Projections;

namespace Tisonet.Dobrak.Services.Projections
{
    public class ProjectionsService: IProjectionsService
    {
        private readonly IProjectionsProvider _projectionsProvider;

        public ProjectionsService(IProjectionsProvider projectionsProvider)
        {
            _projectionsProvider = projectionsProvider;
        }

        public async Task<IEnumerable<Projection>> GetProjectionsAsync()
        {
            return await _projectionsProvider.GetProjectionsAsync();
        }
    }
}
